@use "sass:math";
@import '../../var';
@import '../../common.wxss';

.topic {
  display: flex;
  align-items: center;
  width: 100%;

  .topic-avatar {
    flex: none;
  }

  .topic-name {
    max-width: 8em;
    margin: 0 $md;
    overflow: hidden;
    white-space: nowrap;
  }

  .topic-btn {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    height: $lg * 1.4;
    margin-right: $sm;
    padding: 0 $md;
    font-size: 20rpx;
    line-height: $lg * 1.4;
    background-color: $primary;
    border: math.div(($lg * 1.4) , 2);
    border-radius: 100rpx;
    transition: all $transition-time;

    &.already {
      color: $bgcolor;
      background-color: lighten($primary, 54%);
      pointer-events: none;
    }
  }
}
